cute = list(map(int,input().split()))
m = 0
while m !=fish_number:
    num = 0
    for t in cute[:m]:
        if t < cute[m]:
            num += 1
    m += 1
    print(num,end='')